package com.springboot.framework.entity;

import lombok.Getter;
import lombok.Setter;
import org.bson.types.Binary;
import org.springframework.data.annotation.Id;

import java.time.LocalDateTime;

@Getter
@Setter
public class FileEntity {
    @Id
    private String id;
    /*文件名*/
    private String name;
    /*创建时间*/
    private LocalDateTime createTime;
    /*文件主体*/
    private Binary content;
    /*文件类型*/
    private String contentType;
    /*文件大小*/
    private long size;
}
